import Mock from 'mockjs2'
import { builder } from '@/mock/util'

const PostList = () => {
  return builder({
    'list': [{
      'id': '1',
      'createName': '创建人',
      'detailContent': '公告内容',
      'title': '公告标题',
      'releaseTime': 1497160610259
    }, {
      'id': '2',
      'createName': '创建人02',
      'detailContent': '公告内容02',
      'title': '公告标题02',
      'releaseTime': 1497160610259
    }, {
      'id': '3',
      'createName': '创建人03',
      'detailContent': '公告内容03',
      'title': '公告标题03',
      'releaseTime': 1497160610259
    }],
    'pageSize': 10,
    'pageNum': 0,
    'Pages': 1,
    'total': 2
  })
}

Mock.mock(/\/notice\/list/, 'get', PostList)
